"""

作者：李海强
创建时间：2024/03/07 15:57
最后修改时间:

"""
from django.urls import re_path,path
from rest_framework.routers import DefaultRouter

from apps.prescription.views import PrescriptionView, selfcreate, DrugView

router = DefaultRouter()

# 获取药方
router.register("prescription", PrescriptionView, basename="prescription")
# 获取药品
router.register("drug", DrugView, basename="drug")

urlpatterns = [
    re_path(
        "order_status/",
        PrescriptionView.as_view({"get": "updata_status"}),
    ),
    re_path(
        "create_rad_preceipt/",
        PrescriptionView.as_view({"put": "Create_YF"}),
    ),
    path("selfcreate/",selfcreate)
]

urlpatterns += router.urls
